﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;
using Lib.Web.Mvc.JQuery.JqGrid.DataAnnotations;
using Lib.Web.Mvc.JQuery.JqGrid;
using System.ComponentModel;

namespace jqGrid.JeffSogolov.Models
{
    public class DummyViewModel
    {
        #region Properties
        [ScaffoldColumn(false)]
        public int Id { get; set; }

        [JqGridColumnSortable(false)]
        [JqGridColumnFormatter("'checkbox'")]
        [JqGridColumnLayout(Alignment = JqGridAlignments.Center)]
        [JqGridColumnEditable(true, EditType = JqGridColumnEditTypes.CheckBox)]
        public bool Updated { get; set; }

        [JqGridColumnSortable(false)]
        [DisplayName("First value")]
        [JqGridColumnEditable(false)]
        public string FirstValue { get; set; }

        [JqGridColumnSortable(false)]
        [DisplayName("Second value")]
        [JqGridColumnEditable(false)]
        public string SecondValue { get; set; }

        [JqGridColumnSortable(false)]
        [JqGridColumnEditable(true, "Comparisions", "Home", EditType = JqGridColumnEditTypes.Select)]
        [Required]
        public string Comparision { get; set; }
        #endregion
    }
}